import axios from "axios";
import qs from "qs"

// 创建axios实例
const instance = axios.create()

let myaxios = {

   get(url,params){
      return instance({
         url,
         method:'GET',
         params
      })
   },

   post(url,params){
      return instance({
         url,
         method:'POST',
         data:qs.stringify(params)
      })
   }
}

export default myaxios;